/* u9875u9762u5e03u5c40u6837u5f0f */
.version-list-page {
  flex: 1;
  padding: 16px 24px 24px;
  background-color: #f8f9fa;
  overflow: auto;
  box-sizing: border-box;
  margin-left: 200px;
  margin-top: 64px;
  height: calc(100vh - 64px);
}

.version-list-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-header {
  margin-bottom: 24px;
}

.header-actions {
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.deploy-form-card {
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 100%;
}

/* 部署表单上下布局样式 */
.form-fields-section {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.yaml-editor-section {
  margin-top: 8px;
}

.content-section {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.version-table-container {
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 24px;
  flex: 0 0 auto;
}

.version-table {
  width: 100%;
}

.version-table .ant-table-thead > tr > th {
  background-color: #f5f5f5;
  font-weight: 500;
  color: #333;
  padding: 12px 16px;
  border-bottom: 1px solid #e8e8e8;
}

.version-table .ant-table-tbody > tr > td {
  padding: 12px 16px;
  border-bottom: 1px solid #e8e8e8;
}

.version-table-row:hover {
  background-color: #f5f5f5;
}

.version-table .ant-table-row-expand-icon-cell {
  width: 50px;
}

.version-table .ant-table-pagination {
  margin: 16px 0;
}

.action-link {
  color: #1890ff;
  text-decoration: none;
}

.action-link:hover {
  color: #40a9ff;
  text-decoration: underline;
}

/* Add styles for the tag in the environment column */
.ant-tag {
  margin-right: 4px;
  border-radius: 2px;
  font-size: 12px;
  padding: 0 6px;
  height: 22px;
  line-height: 20px;
}

/* Expandable row styles */
.expanded-row-content {
  padding: 24px 0;
  width: 100%;
}

.expanded-row-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.action-options {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.tab-button-group {
  display: flex;
  border: 1px solid #e8e8e8;
  border-radius: 2px;
  overflow: hidden;
  width: fit-content;
}

.tab-button {
  min-width: 90px;
  height: 40px;
  font-size: 14px;
  border-radius: 0;
  border: none;
  padding: 0 24px;
  color: #333;
  background: white;
  position: relative;
  transition: all 0.3s;
  margin: 0;
}

.tab-button:hover {
  color: #1890ff;
}

.tab-button.active {
  color: white;
  background-color: #1890ff;
  z-index: 1;
  box-shadow: none;
}

.tab-button-group .active {
  color: white;
  background-color: #1890ff;
  border: none;
}

.tab-button:not(:last-child) {
  border-right: 1px solid #e8e8e8;
}

.action-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 0;
  width: 100%;
  text-align: center;
}

.action-confirmation {
  margin-bottom: 16px;
  font-size: 15px;
  color: rgba(0, 0, 0, 0.75);
  font-weight: 500;
}

.rollback-input {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Upgrade editors styling */
.upgrade-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.chart-version-input {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.chart-version-input label {
  margin-right: 8px;
  font-size: 14px;
}

.upgrade-button {
  margin-left: 8px;
}

.editors-container {
  width: 100%;
  max-width: 1200px;
  background-color: #1e1e1e;
  border-radius: 4px;
  overflow: hidden;
}

.editors-header {
  display: flex;
  background-color: #333;
  color: white;
  padding: 8px 0;
}

.editor-header {
  flex: 1;
  text-align: center;
  font-weight: 500;
}

.editors-content {
  display: flex;
}

.editor-wrapper {
  flex: 1;
  border-right: 1px solid #444;
}

.editor-wrapper:last-child {
  border-right: none;
}

/* 下方区域样式 */
.deployment-area {
  flex: 1;
  background-color: transparent;
  display: flex;
  flex-direction: column;
  min-height: 10vh;
  margin-top: 16px;
}

.deployment-area-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

.empty-deployment-message {
  text-align: center;
  color: #8c8c8c;
}

.message-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.message-text {
  font-size: 16px;
}

.expand-icon {
  transition: transform 0.3s;
}

.expand-icon:hover {
  color: #1890ff;
}
